package org.example.design.visitor;

import org.example.design.visitor.visitor.impl.Parent;
import org.example.design.visitor.visitor.impl.Principal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2020/11/12 2:46 下午
 * @Created by xiangjd
 */
public class Test {
    private Logger logger = LoggerFactory.getLogger(Test.class);

    @org.junit.Test
    public void test() {
        DataView dataView = new DataView();

        logger.info("\r\n家长视角访问：");
        dataView.show(new Parent());

        logger.info("\r\n校长视角访问：");
        dataView.show(new Principal());

    }
}
